home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / System / BoingBag1 / Contributions / InstallerNG / GUI-API / example / igui_NameCancel.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  1KB  |  53 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  *  set the text of the "Abort Installation" button to an other one.
  10.  *  this is called when the InstallerNG enters a SWING environment or
  11.  *  when the script sets the @abort-button variable
  12.  *
  13.  *  IN:  application - pointer to the private application structure
  14.  *       text - the new text for the button
  15.  *  OUT: -
  16.  *
  17.  *
  18.  */
  19.  
  20. /********************************************************************
  21.  *
  22.  *  STATIC
  23.  *
  24.  */
  25.  
  26. /********************************************************************
  27.  *
  28.  *  EXTERN
  29.  *
  30.  */
  31.  
  32. /********************************************************************
  33.  *
  34.  *  PUBLIC
  35.  *
  36.  */
  37.  
  38. /********************************************************************
  39.  *
  40.  *  CODE
  41.  *
  42.  */
  43.  
  44. void __asm igui_NameCancel(register __a0 APTR application, register __a1 char *text)
  45. {
  46.   #ifdef DEBUG
  47.   DEBUG_MAKRO
  48.   #endif
  49.  
  50.   // change the button text of the "Cancel" button
  51.   SetAttrs(((struct Application *) application)->app_ButtonCancel, MUIA_Text_Contents, text, TAG_DONE);
  52. }
  53.